﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using dhsystem.basicForm;
using dhsystem.orderForm;
using dhsystem.produceForm;
using baseSet.datGridSet;
using baseSet.csBulider;
using dhsystem.produceForm.pdrk ;
using dhsystem.produceForm.Stock;
using dhsystem.produceForm.picking;
using baseSet.power;
using baseSet.importExport;
using dhDataAcess.dataAcess;

namespace dhsystem.Main
{
    public partial class MDImain : Form
    {
        private int childFormNumber = 0;

        public MDImain()
        {
            InitializeComponent();
        }

        private void ShowNewForm(object sender, EventArgs e)
        {
            Form childForm = new Form();
            childForm.MdiParent = this;
            childForm.Text = "窗口 " + childFormNumber++;
            childForm.Show();
        }

        private void OpenFile(object sender, EventArgs e)
        {
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            openFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件(*.*)|*.*";
            if (openFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                string FileName = openFileDialog.FileName;
            }
        }

        private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();
            saveFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            saveFileDialog.Filter = "文本文件(*.txt)|*.txt|所有文件(*.*)|*.*";
            if (saveFileDialog.ShowDialog(this) == DialogResult.OK)
            {
                string FileName = saveFileDialog.FileName;
            }
        }

        private void ExitToolsStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void CutToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void CopyToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void PasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }

        private void ToolBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
           // toolStrip.Visible = toolBarToolStripMenuItem.Checked;
        }

        private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //statusStrip.Visible = statusBarToolStripMenuItem.Checked;
        }

        private void CascadeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.Cascade);
        }

        private void TileVerticalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileVertical);
        }

        private void TileHorizontalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void ArrangeIconsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LayoutMdi(MdiLayout.ArrangeIcons);
        }

        private void CloseAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
        }

        private void 生产退货单ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 部门资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmDeptList deptList = new FrmDeptList();
            deptList.MdiParent = this;
            deptList.Show();
            deptList.WindowState = FormWindowState.Maximized;
        }

        private void 职员资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmWorkerList workerList = new FrmWorkerList();
            workerList.MdiParent = this;
            workerList.Show();
            workerList.WindowState = FormWindowState.Maximized;
        }

        private void 操作员资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmUserList userList = new FrmUserList();
            userList.MdiParent = this;
            userList.Show();
            userList.WindowState = FormWindowState.Maximized;
        }
        private void 用户权限组ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
        }


        private void 新增产品ToolStripMenuItem_Click(object sender, EventArgs e)
        {
             FrmProductList product = new FrmProductList();
            product.MdiParent = this;
            product.Show();
            product.WindowState = FormWindowState.Maximized;
        }

        private void 产品类型ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmProductType productType = new FrmProductType();
            productType.MdiParent = this;
            productType.Show();
            productType.WindowState = FormWindowState.Maximized;
        }

        private void 供应商资料ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmSupplierList supplierList = new FrmSupplierList("原材料仓");
            supplierList.MdiParent = this;
            supplierList.Show();
            supplierList.WindowState = FormWindowState.Maximized;
        }

        private void 供应商类别ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSupplierType supplierType = new FrmSupplierType();
            supplierType.MdiParent = this;
            supplierType.Show();
            supplierType.WindowState = FormWindowState.Maximized;
        }

        private void 客户资料ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmCustList custList = new FrmCustList();
            custList.MdiParent = this;
            custList.Show();
            custList.WindowState = FormWindowState.Maximized;
        }

        private void 客户类别ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCustType custstype = new FrmCustType();
            custstype.MdiParent = this;
            custstype.Show();
            custstype.WindowState = FormWindowState.Maximized;
        }



        private void 原料类型ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMaterialType materialType = new FrmMaterialType();
            materialType.MdiParent = this;
            materialType.Show();
            materialType.WindowState = FormWindowState.Maximized;
        }

        private void 原材料资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMaterialList materialList = new FrmMaterialList("原材料");
            materialList.MdiParent = this;
            materialList.Show();
            materialList.WindowState = FormWindowState.Maximized;
        }

        private void 产品bom从表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
         
        }

        private void 客户送货地址信息表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCustAddList custAddList = new FrmCustAddList();
            custAddList.MdiParent = this;
            custAddList.Show();
            custAddList.WindowState = FormWindowState.Maximized;
        }

        private void 公司信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCompanyinfo companyinfo = new FrmCompanyinfo();
            companyinfo.MdiParent = this;
            companyinfo.Show();
            companyinfo.WindowState = FormWindowState.Maximized;
        }

        private void 模块权限列表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
        }

        private void 基础信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBasList basList = new FrmBasList();
            basList.MdiParent = this;
            basList.Show();
            basList.WindowState = FormWindowState.Maximized;
        }

        private void 程序模块表ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmModuleList moduleList = new FrmModuleList();
            moduleList.MdiParent = this;
            moduleList.Show();
            moduleList.WindowState = FormWindowState.Maximized;
        }

        private void 模块表格列表ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmItemlist itemList = new FrmItemlist();
            itemList.MdiParent = this;
            itemList.Show();
            itemList.WindowState = FormWindowState.Maximized;
        }

        private void 仓库信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmStockList stockList = new FrmStockList();
            stockList.MdiParent = this;
            stockList.Show();
            stockList.WindowState = FormWindowState.Maximized;
        }

        private void 仓位信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmStockPosition stockPosition = new FrmStockPosition();
            stockPosition.MdiParent = this;
            stockPosition.Show();
            stockPosition.WindowState = FormWindowState.Maximized;
        }

        private void 系统基础资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 测试ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form1 test = new Form1();

            test.MdiParent = this;
            test.Show();
            test.WindowState = FormWindowState.Maximized;
        }

        private void 产品bom表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmPbomMaster pbomMaster = new FrmPbomMaster();
            pbomMaster.MdiParent = this;
            pbomMaster.Show();
            pbomMaster.WindowState = FormWindowState.Maximized;
        }

        private void 订单表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_order V_order = new FrmV_order();
            V_order.MdiParent = this;
            V_order.Show();
            V_order.WindowState = FormWindowState.Maximized;
            
        }

        private void 生产领料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmscrlMaster scrl = new FrmscrlMaster();
            scrl.MdiParent = this;
            scrl.Show();
            scrl.WindowState = FormWindowState.Maximized;
        }

        private void 胚带入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void 订单成品入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmpackStockInMaster packStockIn = new FrmpackStockInMaster("成品仓");
            packStockIn.MdiParent = this;
            packStockIn.Show();
            packStockIn.WindowState = FormWindowState.Maximized;
        }

        private void 订单出库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmorderStockOutMaster orderStockOut = new FrmorderStockOutMaster();
            orderStockOut.MdiParent = this;
            orderStockOut.Show();
            orderStockOut.WindowState = FormWindowState.Maximized;
        }

        private void 退货入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmorderStockReturnMaster orderStockReturn = new FrmorderStockReturnMaster();
            orderStockReturn.MdiParent = this;
            orderStockReturn.Show();
            orderStockReturn.WindowState = FormWindowState.Maximized;
        }

        private void 领料出库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
         
        }

        private void 领料退库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
        
        }

        private void 采购订单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgddMaster cgdd = new FrmcgddMaster();
            cgdd.MdiParent = this;
            cgdd.Show();
            cgdd.WindowState = FormWindowState.Maximized;
        }

        private void 采购收货入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgshrkMaster cgshrk = new FrmcgshrkMaster("原材料仓");
            cgshrk.MdiParent = this;
            cgshrk.Show();
            cgshrk.WindowState = FormWindowState.Maximized;
        }

        private void 采购退货ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgthckMaster cgthck = new FrmcgthckMaster("");
            cgthck.MdiParent = this;
            cgthck.Show();
            cgthck.WindowState = FormWindowState.Maximized;
        }

        private void 模块表格列生成ToolStripMenuItem_Click(object sender, EventArgs e)
        {

            FrmItemListAdd listAdd = new FrmItemListAdd();
            listAdd.Show();
        }

        private void 代码生成器ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmCRUDclass crud = new FrmCRUDclass();
            crud.Show();
        }

        private void MDImain_Load(object sender, EventArgs e)
        {
           
         //sysDataSet.modulAaccessDataTable modulAaccess = powerSet.modulPower(moduleInfo.itemList);
         //  foreach (sysDataSet.modulAaccessRow modulAaccessRow in modulAaccess)
         //  {

         //      订单管理ToolStripMenuItem.Enabled = modulAaccessRow.showAc;
         //      生产管理ToolStripMenuItem.Enabled = modulAaccessRow.showAc;
         //  }
        }

        private void 订单明细变更表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmorderDetailUpdate orderDetailUpdate = new FrmorderDetailUpdate();
            orderDetailUpdate.MdiParent = this;
            orderDetailUpdate.Show();
            orderDetailUpdate.WindowState = FormWindowState.Maximized;
        }

        private void 色号对照表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
        }

        private void 生产发胚ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           
        }

        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmorderMaster orderMaster = new FrmorderMaster();
            orderMaster.MdiParent = this;
            orderMaster.Show();
            orderMaster.WindowState = FormWindowState.Maximized;
        }

        private void 生产通知单ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmorderProduceList orderProduceList = new FrmorderProduceList();
            orderProduceList.MdiParent = this;
            orderProduceList.Show();
            orderProduceList.WindowState = FormWindowState.Maximized;
        }

        private void 权限组资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmAccessGroup accessGroup = new FrmAccessGroup();
            accessGroup.MdiParent = this;
            accessGroup.Show();
            accessGroup.WindowState = FormWindowState.Maximized;
        }

        private void 模块权限列表ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmModuleaccess moduleaccess = new FrmModuleaccess();
            moduleaccess.MdiParent = this;
            moduleaccess.Show();
            moduleaccess.WindowState = FormWindowState.Maximized;
        }

        private void 色号对照表ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmcolorNumList colorNum = new FrmcolorNumList();
            colorNum.MdiParent = this;
            colorNum.Show();
            colorNum.WindowState = FormWindowState.Maximized;
        }

        private void 染色确认ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmcoloration coloration = new Frmcoloration();
            coloration.MdiParent = this;
            coloration.Show();
        }

        private void 多余成品入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmpackStockInMaster packStockIn = new FrmpackStockInMaster("多余正品仓");
            packStockIn.MdiParent = this;
            packStockIn.Show();
            packStockIn.WindowState = FormWindowState.Maximized;
        }

        private void 废品仓入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmpackStockInMaster packStockIn = new FrmpackStockInMaster("成品废品仓");
            packStockIn.MdiParent = this;
            packStockIn.Show();
            packStockIn.WindowState = FormWindowState.Maximized;
        }

        private void 织带胚带重量ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmpdwight pdwight = new Frmpdwight();
            pdwight.MdiParent = this;
            pdwight.Show();
        }

        private void 包装胚带重量ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmpackwight packwight = new Frmpackwight();
            packwight.MdiParent = this;
            packwight.Show();
        }

        private void mrp用料表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
       
        }

        private void 生产备料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmproductblMaster productbl = new FrmproductblMaster();
            productbl.MdiParent = this;
            productbl.Show();
            productbl.WindowState = FormWindowState.Maximized;
        }

        private void 复色ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmpiaoranPlan piaoranPlan = new FrmpiaoranPlan();
            piaoranPlan.MdiParent = this;
            piaoranPlan.Show();
            piaoranPlan.WindowState = FormWindowState.Maximized;
        }

        private void 漂染排期ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmranse ranse = new Frmranse();
            ranse.MdiParent = this;
            ranse.Show();
            ranse.WindowState = FormWindowState.Maximized;
        }

        private void 漂染记录表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmPdpqb pdpqb = new FrmPdpqb();
            pdpqb.MdiParent = this;
            pdpqb.Show();
            pdpqb.WindowState = FormWindowState.Maximized;
        }

        private void 生产复期ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmorderMaster orderMaster = new FrmorderMaster();
            orderMaster.MdiParent = this;
            orderMaster.Show();
            orderMaster.WindowState = FormWindowState.Maximized;
        }

        private void 生产用料计算ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMrp mrp = new FrmMrp();
            mrp.MdiParent = this;
            mrp.Show();
            mrp.WindowState = FormWindowState.Maximized;
        }

        private void 仓库管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 领料出库ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmrlckMaster rlck = new FrmrlckMaster("原材料仓");
            rlck.MdiParent = this;
            rlck.Show();
            rlck.WindowState = FormWindowState.Maximized;
        }

        private void 领料退库ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmrltkMaster rltk = new FrmrltkMaster("原材料仓");
            rltk.MdiParent = this;
            rltk.Show();
            rltk.WindowState = FormWindowState.Maximized;
        }

        private void 胚带入库ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmpdrkMaster pdrk = new FrmpdrkMaster();
            pdrk.MdiParent = this;
            pdrk.Show();
            pdrk.WindowState = FormWindowState.Maximized;
        }

        private void 生产发胚ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Frmpdfpjlb pdfpjlb = new Frmpdfpjlb();
            pdfpjlb.MdiParent = this;
            pdfpjlb.Show();
            pdfpjlb.WindowState = FormWindowState.Maximized;
        }

        private void 领料退库ToolStripMenuItem1_Click_1(object sender, EventArgs e)
        {
            FrmrltkMaster rltk = new FrmrltkMaster("原材料仓");
            rltk.MdiParent = this;
            rltk.Show();
            rltk.WindowState = FormWindowState.Maximized;
        }

        private void 原材料入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgshrkMaster cgshrk = new FrmcgshrkMaster("原材料仓");
            cgshrk.MdiParent = this;
            cgshrk.Show();
            cgshrk.WindowState = FormWindowState.Maximized;
        }

        private void 胚带库存表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
           // FrmproductStock productStock = new FrmproductStock();
            FrmproductStockDetail productStock = new FrmproductStockDetail();
            productStock.MdiParent = this;
            productStock.Show();
            productStock.WindowState = FormWindowState.Maximized;
        }

        private void 成品库存表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmproductOrderStockList productOrderStockList = new FrmproductOrderStockList();
            productOrderStockList.MdiParent = this;
            productOrderStockList.Show();
            productOrderStockList.WindowState = FormWindowState.Maximized;
        }

        private void 原材料库存表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmmaterialStockListDetail materialStockList = new FrmmaterialStockListDetail();
            //FrmmaterialStockList materialStockList = new FrmmaterialStockList("原材料");
            materialStockList.MdiParent = this;
            materialStockList.Show();
            materialStockList.WindowState = FormWindowState.Maximized;

        }

        private void 五金仓入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgshrkMaster cgshrk = new FrmcgshrkMaster("五金仓");
            cgshrk.MdiParent = this;
            cgshrk.Show();
            cgshrk.WindowState = FormWindowState.Maximized;
        }

        private void 五金仓出库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmrlckMaster rlck = new FrmrlckMaster("五金仓");
            rlck.MdiParent = this;
            rlck.Show();
            rlck.WindowState = FormWindowState.Maximized;
        }

        private void 五金仓退库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmrltkMaster rltk = new FrmrltkMaster("五金仓");
            rltk.MdiParent = this;
            rltk.Show();
            rltk.WindowState = FormWindowState.Maximized;
        }

        private void 胚带出库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmpdckMaster pdck = new FrmpdckMaster();
            pdck.MdiParent = this;
            pdck.Show();
            pdck.WindowState = FormWindowState.Maximized;
        }

        private void 机器动态表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmmachineTable machineTable = new FrmmachineTable();
            machineTable.MdiParent = this;
            machineTable.Show();
            machineTable.WindowState = FormWindowState.Maximized;
        }

        private void 包装入库ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmV_packDetail packStockIn = new FrmV_packDetail();
            packStockIn.MdiParent = this;
            packStockIn.Show();
            packStockIn.WindowState = FormWindowState.Maximized;
        }

        private void 报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 出库报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            V_pdck pdck = new V_pdck();
            pdck.MdiParent = this;
            pdck.Show();
            pdck.WindowState = FormWindowState.Maximized;
        }

        private void 入库报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            V_pdrk pdrk = new V_pdrk();
            pdrk.MdiParent = this;
            pdrk.Show();
            pdrk.WindowState = FormWindowState.Maximized;
        }

        private void 包装报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmpackbaobiao packbaobiao = new Frmpackbaobiao();
            packbaobiao.MdiParent = this;
            packbaobiao.Show();
            packbaobiao.WindowState = FormWindowState.Maximized;
        }
        
        private void 仓库报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_orderstockOut V_orderstockOut = new FrmV_orderstockOut();
            V_orderstockOut.MdiParent = this;
            V_orderstockOut.Show();
            V_orderstockOut.WindowState = FormWindowState.Maximized;
        }

        private void 五金资料ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmMaterialList materialList = new FrmMaterialList("五金");
            materialList.MdiParent = this;
            materialList.Show();
            materialList.WindowState = FormWindowState.Maximized;
        }

        private void 未做工艺资料货号ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmorderpname orderpname = new Frmorderpname();
            orderpname.MdiParent = this;
            orderpname.Show();
            orderpname.WindowState = FormWindowState.Maximized;
        }

        private void 原材料采购退库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgthckMaster cgthck = new FrmcgthckMaster("原材料仓");
            cgthck.MdiParent = this;
            cgthck.Show();
            cgthck.WindowState = FormWindowState.Maximized;
        }

        private void 五金采购退库ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmcgthckMaster cgthck = new FrmcgthckMaster("五金仓");
            cgthck.MdiParent = this;
            cgthck.Show();
            cgthck.WindowState = FormWindowState.Maximized;
        }

        private void 五金库存表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmmaterialStockList materialStockList = new FrmmaterialStockList("五金");
            materialStockList.MdiParent = this;
            materialStockList.Show();
            materialStockList.WindowState = FormWindowState.Maximized;

        }

        private void 包装入库ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 包装标签打印ToolStripMenuItem_Click(object sender, EventArgs e)
        {

        }

        private void 原材料入库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_cgshrkDetail V_cgshrk = new FrmV_cgshrkDetail("原材料仓");
            V_cgshrk.MdiParent = this;
            V_cgshrk.Show();
            V_cgshrk.WindowState = FormWindowState.Maximized;
        }

        private void 五金入库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_cgshrkDetail V_cgshrk = new FrmV_cgshrkDetail("五金仓");
            V_cgshrk.MdiParent = this;
            V_cgshrk.Show();
            V_cgshrk.WindowState = FormWindowState.Maximized;
        }

        private void 五金供应商ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmSupplierList supplierList = new FrmSupplierList("五金仓");
            supplierList.MdiParent = this;
            supplierList.Show();
            supplierList.WindowState = FormWindowState.Maximized;
        }

        private void 生产ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_productblbaobiao V_productblbaobiao = new FrmV_productblbaobiao();
            V_productblbaobiao.MdiParent = this;
            V_productblbaobiao.Show();
            V_productblbaobiao.WindowState = FormWindowState.Maximized;
        }

        private void 原材料领料出库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_rlckDetail V_rlckDetail = new FrmV_rlckDetail("原材料仓");
            V_rlckDetail.MdiParent = this;
            V_rlckDetail.Show();
            V_rlckDetail.WindowState = FormWindowState.Maximized;
        }

        private void 五金领料出库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_rlckDetail V_rlckDetail = new FrmV_rlckDetail("五金仓");
            V_rlckDetail.MdiParent = this;
            V_rlckDetail.Show();
            V_rlckDetail.WindowState = FormWindowState.Maximized;
        }

        private void 原材料领料退库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_rltkDetail V_rltkDetail = new FrmV_rltkDetail("原材料仓");
            V_rltkDetail.MdiParent = this;
            V_rltkDetail.Show();
            V_rltkDetail.WindowState = FormWindowState.Maximized;
        }

        private void 五金领料退库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_rltkDetail V_rltkDetail = new FrmV_rltkDetail("五金仓");
            V_rltkDetail.MdiParent = this;
            V_rltkDetail.Show();
            V_rltkDetail.WindowState = FormWindowState.Maximized;
        }

        private void 胚带发胚报表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_pdfpjlb V_pdfpjlb = new FrmV_pdfpjlb();
            V_pdfpjlb.MdiParent = this;
            V_pdfpjlb.Show();
            V_pdfpjlb.WindowState = FormWindowState.Maximized;
        }

        private void 包装入库明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmV_StockInDetail V_pdfpjlb = new FrmV_StockInDetail();
            V_pdfpjlb.MdiParent = this;
            V_pdfpjlb.Show();
            V_pdfpjlb.WindowState = FormWindowState.Maximized;
        }

        private void 原材料库存明细表ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmmaterialStockListDetail V_pdfpjlb = new FrmmaterialStockListDetail();
            V_pdfpjlb.MdiParent = this;
            V_pdfpjlb.Show();
            V_pdfpjlb.WindowState = FormWindowState.Maximized;
        }
    }
}
